package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyrjAppointmentActionMapper;
import com.ruoyi.system.domain.HyrjAppointmentAction;
import com.ruoyi.system.service.IHyrjAppointmentActionService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-08
 */
@Service
public class HyrjAppointmentActionServiceImpl implements IHyrjAppointmentActionService 
{
    @Autowired
    private HyrjAppointmentActionMapper hyrjAppointmentActionMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public HyrjAppointmentAction selectHyrjAppointmentActionById(Long id)
    {
        return hyrjAppointmentActionMapper.selectHyrjAppointmentActionById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param hyrjAppointmentAction 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<HyrjAppointmentAction> selectHyrjAppointmentActionList(HyrjAppointmentAction hyrjAppointmentAction)
    {
        return hyrjAppointmentActionMapper.selectHyrjAppointmentActionList(hyrjAppointmentAction);
    }

    @Override
    public HyrjAppointmentAction selectHyrjAppointmentActionByMachineNo(HyrjAppointmentAction hyrjAppointmentAction) {
        return hyrjAppointmentActionMapper.selectHyrjAppointmentActionByMachineNo(hyrjAppointmentAction);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param hyrjAppointmentAction 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertHyrjAppointmentAction(HyrjAppointmentAction hyrjAppointmentAction)
    {
        hyrjAppointmentAction.setCreateTime(DateUtils.getNowDate());
        return hyrjAppointmentActionMapper.insertHyrjAppointmentAction(hyrjAppointmentAction);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param hyrjAppointmentAction 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateHyrjAppointmentAction(HyrjAppointmentAction hyrjAppointmentAction)
    {
        hyrjAppointmentAction.setUpdateTime(DateUtils.getNowDate());
        return hyrjAppointmentActionMapper.updateHyrjAppointmentAction(hyrjAppointmentAction);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteHyrjAppointmentActionByIds(Long[] ids)
    {
        return hyrjAppointmentActionMapper.deleteHyrjAppointmentActionByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteHyrjAppointmentActionById(Long id)
    {
        return hyrjAppointmentActionMapper.deleteHyrjAppointmentActionById(id);
    }
}
